#include "stdafx.h"
#include <glut.h>
#include "Renderer.h"

CRenderer::CRenderer( )
{
}

CRenderer::~CRenderer( )
{
}

void CRenderer::PreRender( )
{
}

void CRenderer::Render( )
{
	// Clear buffers
	glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

	glMatrixMode( GL_PROJECTION );
	glLoadIdentity( );
	gluPerspective( 60, ( ( float ) glutGet( GLUT_WINDOW_WIDTH ) / ( float ) glutGet( GLUT_WINDOW_HEIGHT ) ), 1.0f, 10000.0f );
	gluLookAt( 0.0f, 0.0f, -10.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);

	glMatrixMode( GL_MODELVIEW );
	glLoadIdentity( );

	glTranslatef( 0.0f, 0.0f, -5.0f );
	glutSolidCube( 2 );
}

void CRenderer::PostRender( )
{
}